Skip to content

Bump PSModule/GitHub-Script from 1.7.10 to 1.8.0#29

Merged
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
dependabot/github_actions/PSModule/GitHub-Script-1.8.0
May 24, 2026
Merged

Bump PSModule/GitHub-Script from 1.7.10 to 1.8.0#29
Marius Storhaug (MariusStorhaug) merged 2 commits into
mainfrom
dependabot/github_actions/PSModule/GitHub-Script-1.8.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 19, 2026

Bumps PSModule/GitHub-Script from 1.7.10 to 1.8.0.

Release notes

Sourced from PSModule/GitHub-Script's releases.

v1.8.0

🚀 [Minor]: GitHub API rate limit details now available in action logs (#89)

GitHub API rate limit consumption is now visible directly in the action logs. When enabled, rate limit details - including remaining quota, limit, used count, and reset time for all resource categories - are displayed before and after the user script runs, making it easy to see exactly how many API calls a workflow step consumed.

New: Rate limit visibility in action logs

A new ShowRateLimit input (default: 'false') controls whether rate limit information appears in the logs. When set to 'true', a Rate Limits LogGroup appears inside the Info fence before the user script, and another Rate Limits LogGroup appears inside the Outputs fence after it.

- uses: PSModule/GitHub-Script@v1
  with:
    ShowRateLimit: 'true'
    Script: |
      Get-GitHubRepository -Owner PSModule -Name GitHub-Script

The output includes a formatted table of all resource categories returned by Get-GitHubRateLimit (core, search, graphql, etc.), each showing Limit, Used, Remaining, ResetsAt, and ResetsIn.

When the input is omitted or set to 'false' (the default), no rate limit output appears.

If ShowRateLimit is enabled but ShowInfo or ShowOutput is off, the corresponding fence still renders with just the rate limit content inside. For auth types that do not support Get-GitHubRateLimit (for example GitHub App contexts), a warning is shown instead of failing.

Technical Details

  • Added ShowRateLimit input to action.yml with required: false and default: 'false'.
  • Added PSMODULE_GITHUB_SCRIPT_INPUT_ShowRateLimit environment variable to the composite step.
  • Created src/ratelimit.ps1 as a helper script (no fence borders) that checks the guard and renders a single Rate Limits LogGroup.
  • src/ratelimit.ps1 now calls Get-GitHubRateLimit -ErrorAction Stop so non-terminating errors are caught reliably in unsupported auth contexts.
  • src/ratelimit.ps1 explicitly selects Name, Limit, Used, Remaining, ResetsAt, and ResetsIn before formatting to keep columns deterministic.
  • Modified src/info.ps1: adjusted the early-return guard to also consider ShowRateLimit, wrapped existing LogGroups in if ($showInfo), and calls ratelimit.ps1 before the fence close.
  • Modified src/outputs.ps1: adjusted the early-return guard to also consider ShowRateLimit, wrapped existing output LogGroups in if ($result), and calls ratelimit.ps1 before the fence close.
  • The action.yml run block remains in the same flow, while info.ps1 and outputs.ps1 invoke the helper internally.
  • Enabled ShowRateLimit: true across all Action-Test scenarios in .github/workflows/TestWorkflow.yml, including Basic, WithScript path variants, Commands + Outputs, Matrix Creator, WithoutToken, WithPAT, WithUserFGPAT, WithOrgFGPAT, GitHubAppEnt, GitHubAppOrg + quoted inputs, WithKeyVaultKeyReference, WithKeyVaultKeyReferenceLatest, and PreserveCredentials False.
Commits
  • 1ee97bb 🚀 [Minor]: GitHub API rate limit details now available in action logs (#89)
  • 8649c46 Bump azure/login from 2.3.0 to 3.0.0 (#86)
  • e3b0111 ⚙️ [Maintenance]: Add afterall to codespell ignore words list (#85)
  • 2d8efc6 Bump super-linter/super-linter from 8.4.0 to 8.5.0 (#84)
  • 611c5dc ⚙️ [Maintenance]: Update super-linter to v8.4.0 (#83)
  • 99556fc ⚙️ [Maintenance]: Align workflows across action repositories (#82)
  • See full diff in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 19, 2026

Labels

The following labels could not be found: github-actions. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 19, 2026
Bumps [PSModule/GitHub-Script](https://github.com/psmodule/github-script) from 1.7.10 to 1.8.0.
- [Release notes](https://github.com/psmodule/github-script/releases)
- [Commits](PSModule/GitHub-Script@0097f3b...1ee97bb)

---
updated-dependencies:
- dependency-name: PSModule/GitHub-Script
  dependency-version: 1.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot force-pushed the dependabot/github_actions/PSModule/GitHub-Script-1.8.0 branch from 80ff2ea to ff03b68 Compare May 24, 2026 08:21
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 67b2120 into main May 24, 2026
22 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the dependabot/github_actions/PSModule/GitHub-Script-1.8.0 branch May 24, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant